﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace insidedotnet.UI
{
    /// <summary>
    /// Summary description for File
    /// </summary>
    public static class Arquivo
    {
        public static String GetFileName(String File)
        {
            Int32 lastSlash = File.LastIndexOf("\\");
            return File.Substring(lastSlash + 1, (File.Length - lastSlash) - 1);
        }

        public static String GetFileExtension(String File)
        {
            return File.Substring(File.Length - 4, 4);
        }
    }
}